<template>
	<div>
		<div v-for="item in datas" :key='item.id' class="store_nav">
			<p>{{item.name}}</p>
			<img :src="'//elm.cangdu.org/img/'+item.image_path" alt="">
		</div>
		
	</div>
</template>

<script>
	export default{
		name:'store',
		data(){
			return{
				datas:[],
			}
		},
		created() {
			let obj =this
			this.$axios({
				url:'https://elm.cangdu.org/shopping/restaurant/'+this.$route.query.id,
				method:'get',
			}).then(function(res){
				obj.datas.push(res.data);
				window.console.log(res.data);
			})
		}
	}
</script>

<style>
	*{
		margin: 0;
		padding: 0;
	}
	.store_nav{
		font-size: 12px;
		color: #000000;
	}
</style>
